package com.zztl.infiniteBand.model

/**
 * @desc
 * @auth ${user}
 * @time 2018/4/23  12:00
 */
class TradingRecordBean : BaseResponseBean<TradingRecordBean.DataBean>() {


    /**
     * code : 0
     * data : {"rows":[{"confirmTime":1525855999000,"createTime":1525855999000,"currencyName":"gvc","id":"itr994138232226578432","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":12.51,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525863012000,"createTime":1525863012000,"currencyName":"gvc","id":"itr994167646695981056","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525866323000,"createTime":1525866323000,"currencyName":"gvc","id":"itr994181534514675712","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":120.51,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525867100000,"createTime":1525867100000,"currencyName":"gvc","id":"itr994184790989078528","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525863012000,"createTime":1525863012000,"currencyName":"gvc","id":"itr994167646666620928","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525866665000,"createTime":1525866665000,"currencyName":"gvc","id":"itr994182967452499968","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-1,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525867100000,"createTime":1525867100000,"currencyName":"gvc","id":"itr994184790980689920","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"}],"total":7}
     */


    class DataBean {
        /**
         * rows : [{"confirmTime":1525855999000,"createTime":1525855999000,"currencyName":"gvc","id":"itr994138232226578432","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":12.51,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525863012000,"createTime":1525863012000,"currencyName":"gvc","id":"itr994167646695981056","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525866323000,"createTime":1525866323000,"currencyName":"gvc","id":"itr994181534514675712","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":120.51,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525867100000,"createTime":1525867100000,"currencyName":"gvc","id":"itr994184790989078528","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525863012000,"createTime":1525863012000,"currencyName":"gvc","id":"itr994167646666620928","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525866665000,"createTime":1525866665000,"currencyName":"gvc","id":"itr994182967452499968","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-1,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"},{"confirmTime":1525867100000,"createTime":1525867100000,"currencyName":"gvc","id":"itr994184790980689920","imei":"","incomeTime":"","nextYearMonth":"","transactionMoney":-2,"transactionState":"0","transactionTheme":"转出","transactionType":"2","yearMonth":"2018-05"}]
         * total : 7
         */

        var total: Int = 0
        var rows: List<RowsBean>? = null

        class RowsBean {
            /**
             * confirmTime : 1525855999000
             * createTime : 1525855999000
             * currencyName : gvc
             * id : itr994138232226578432
             * imei :
             * incomeTime :
             * nextYearMonth :
             * transactionMoney : 12.51
             * transactionState : 0
             * transactionTheme : 转出
             * transactionType : 2
             * yearMonth : 2018-05
             */

            var confirmTime: Long = 0
            var createTime: Long = 0
            var currencyName: String? = null
            var id: String? = null
            var imei: String? = null
            var incomeTime: String? = null
            var nextYearMonth: String? = null
            var transactionMoney: Double = 0.toDouble()
            var transactionState: String? = null
            var transactionTheme: String? = null
            var transactionType: String? = null
            var yearMonth: String? = null

            override fun toString(): String {
                return "RowsBean{" +
                        "confirmTime=" + confirmTime +
                        ", createTime=" + createTime +
                        ", currencyName='" + currencyName + '\''.toString() +
                        ", id='" + id + '\''.toString() +
                        ", imei='" + imei + '\''.toString() +
                        ", incomeTime='" + incomeTime + '\''.toString() +
                        ", nextYearMonth='" + nextYearMonth + '\''.toString() +
                        ", transactionMoney=" + transactionMoney +
                        ", transactionState='" + transactionState + '\''.toString() +
                        ", transactionTheme='" + transactionTheme + '\''.toString() +
                        ", transactionType='" + transactionType + '\''.toString() +
                        ", yearMonth='" + yearMonth + '\''.toString() +
                        '}'.toString()
            }
        }

        override fun toString(): String {
            return "DataBean{" +
                    "total=" + total +
                    ", rows=" + rows +
                    '}'.toString()
        }
    }

    override fun toString(): String {
        return "TradingRecordBean{" +
                "code=" + code +
                ", data=" + data +
                ", message='" + message + '\''.toString() +
                '}'.toString()
    }
}
